package entity;

import com.ning.http.util.DateUtil;
import order.Order;

public class ABCPay {

    public String payTypeID = "ImmediatePay";

    public String orderDate;

    public String orderTime;

    public String currencyCode = "156";

    public String orderNo;

    public String orderAmount;

    public String installmentMark = "0";

    public String commodityType = "0203";

    /**
     * 产品信息
     */
    public String productName;


    /**
     * 支付属性
     */
    public String paymentType = "1";


    public String notifyType = "0";

    public String resultNotifyURL = "";

    public String isBreakAccount = "0";


    public ABCPay() {
        super();
    }

    public ABCPay(Order order) {
        this.orderDate = DateUtil.formatDate(order.createdAt , "yyyy/MM/dd");
        this.orderTime = DateUtil.formatDate(order.createdAt , "HH:mm:ss");
        this.orderNo = order.orderNumber;
        this.orderAmount = order.paymentedAmount * 100 + "";
    }

}
